* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ant-card {
  border-radius: 8px;
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
}

// 添加全局过渡效果
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

// 添加全局按钮样式
.ant-btn {
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-1px);
  }

  &.ant-btn-primary {
    background: #1890ff;
    border-color: #1890ff;
    
    &:hover, &:focus {
      background: #40a9ff;
      border-color: #40a9ff;
    }
    
    &:active {
      background: #096dd9;
      border-color: #096dd9;
    }
  }
}

// 添加全局输入框样式
.ant-input-affix-wrapper {
  transition: all 0.3s ease;

  &:hover, &:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #1890ff;
  }
}

.ant-input {
  &:hover, &:focus {
    border-color: #1890ff;
  }
}

// 添加渐变文本效果
.gradient-text {
  background: linear-gradient(90deg, #1890ff 0%, #722ed1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

// 添加悬浮动画
.hover-scale {
  transition: all 0.3s ease;
  
  &:hover {
    transform: scale(1.05);
  }
}

// 添加阴影效果
.hover-shadow {
  transition: all 0.3s ease;
  
  &:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
}

// 添加渐变背景
.gradient-bg {
  background: linear-gradient(135deg, #1890ff 0%, #722ed1 100%);
}

// 添加动画效果
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

// 修改搜索框样式
.ant-input-search {
  .ant-input-wrapper {
    background: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;

    .ant-input {
      background: #f5f5f5;
      border: none;
      box-shadow: none;
      font-size: 14px;
      padding: 8px 16px;

      &:focus {
        background: #f0f0f0;
      }

      &::placeholder {
        color: #999;
      }
    }

    .ant-input-group-addon {
      background: #f5f5f5;
      border: none;
      
      .ant-btn {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 16px;

        &:hover {
          background: #e8e8e8;
        }

        .anticon {
          color: #666;
        }
      }
    }
  }
}

// 修改搜索按钮样式
.ant-input-search .ant-input-search-button {
  background: #1890ff;
  border-color: #1890ff;
  
  &:hover {
    background: #40a9ff;
    border-color: #40a9ff;
  }
  
  .anticon {
    color: #fff;
  }
} 